import request from '@/utils/request'

export default {

    /**
     * 
     * @param {*} page   页码
     * @param {*} pagesize  页面大小
     * @param {*} courseId 课程id
     */
    getComPageList(page, pagesize, courseId) {
        return request({
            url: `/eduservice/comment/get/commont/front/pagelist/${page}/${pagesize}`,
            method: 'get',
            params: { courseId }
        })
    },
    /**
     *  添加 评论信息
     * @param {*} common  评论信息
     */
    addCommon(common) {
        return request({
            url: '/eduservice/comment/add/commont/front',
            method: 'post',
            data: common
        })
    }


}